﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;
using Photon;

public class PlayUIManager : Photon.MonoBehaviour 
{	
	public GameObject rightClickCanvas;
	public GameObject playCanvas;
	public GameObject[] menu = new GameObject[5];

	void Start()
	{	
		Lobby ();
	}
	public void Lobby()
	{	
		rightClickCanvas.SetActive (false);
		GameFunctions.OpenMenu (menu, 4);
	}

	public void Limbo()
	{	
		GameManager.instance.cameraManager.Limbo();
		GameFunctions.OpenMenu (menu, 3);
	}

	public void Settings()
	{
		GameFunctions.OpenMenu (menu,1);
	}
	public void HUD()
	{	
		rightClickCanvas.SetActive (true);
		GameFunctions.OpenMenu (menu,0);
	}

	public void Logout()
	{	
		PhotonNetwork.LeaveRoom ();
		SceneManager.LoadScene (GameConstants.PlayScene);
	}
	public void Verify()
	{
		GameFunctions.OpenMenu (menu, 2);
	}
	public void ExitGame()
	{	
		rightClickCanvas.SetActive(false);
		Lobby();
		GameManager.instance.LeaveGame();
	}
		
}
